package com.deercrowing.takeaway.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.deercrowing.takeaway.entity.OrderDetailEntity;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 订单明细表(OrderDetail)表数据库访问层
 *
 * @author guoyongxiang
 * @since 2024-09-04 14:46:24
 */
@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetailEntity> {
    @Select("select * from tb_order_detail where order_id = #{id}")
    List<OrderDetailEntity> selectListByOrderId(Long id);
}

